package com.sxhuangjiang.formvalidating.entity;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @author huang
 * @version V1.0
 * @date 2019-12-03 15:39
 */
@Data
public class UserVO {
    private int id;

    @NotNull
    @Size(min = 4,max = 20,message = "{username}{validation.size}")
    private String username;

    @NotNull
    @Size(max = 200 ,message = "{description}{validation.size}")
    private String description;

    @NotNull
    @Size(max = 11,message = "{tel}{validation.size}")
    private String tel;
}
